package com.tedu._02notice.controller;

import com.tedu._02notice.pojo.dto.UserLoginParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/v1/user/")
public class UserController {

    @PostMapping("login")
    public String login(@RequestBody UserLoginParam userLoginParam){
        System.out.println("登录："+userLoginParam);

        return "登录成功！";
    }
}
